package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.MemberRed;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface MemberRedRepository extends JpaRepository<MemberRed, Integer>,IJpqlExecutor<MemberRed>{
	
	List<MemberRed> findByMemberIdAndRedId(Integer memberId,Integer redId);
	
	List<MemberRed> findByMemberIdAndStateOrderByCreateTimeDesc(Integer memberId,Integer state);

}
